package com.liyuan;

import com.liyuan.controller.GetSessionContext;
import com.liyuan.controller.WriteHDFSDriver;

import java.io.IOException;
import java.util.concurrent.ThreadLocalRandom;

public class ExecutionMain {
    public static void main(String[] args) throws IOException, InterruptedException, ClassNotFoundException {
            GetSessionContext getSessionContext = new GetSessionContext();
            String[] strings = getSessionContext.returnListHostSection().toArray(new String[0]);
            // System.out.println(strings[0]);
            new WriteHDFSDriver().writeHdfsJob(strings);
    }
}